package com.hmall.mapper;

import com.hmall.model.SysCustomerUserIsStar;
import com.hmall.util.MyMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository
public interface SysCustomerUserIsStarMapper extends MyMapper<SysCustomerUserIsStar> {

    SysCustomerUserIsStar selectIsStar(@Param("userId") Integer userId, @Param("customerId") Integer customerId);

    void updateStarStatus(@Param("userId") Integer userId, @Param("customerId") Integer customerId, @Param("isStar") int isStar);

    void insertStarStatus(@Param("userId") Integer userId, @Param("customerId") Integer customerId, @Param("isStar") int isStar);
}